/* import {
	UserLayout,
	TabLayout,
	RouteView,
	BlankLayout,
	PageView,
} from '@/components/layouts' */

/**
 * 基础路由
 * 未登陆 / 拦截到 /user/login
 * @type { *[] }
 */
export const constantRouterMap = [
	// {
	// 	path: '/',
	// 	redirect: '/user/login',
	// 	hidden: true,
	// 	// children: [
	// 	// 	{
	// 	// 		path: '',
	// 	// 		name: 'login',
	// 	// 		component: Login,
	// 	// 	},
	// 	// ],
	// },
	{
		path: '/user/login',
		component: () =>
			import(/* webpackChunkName: "user" */ '@/views/user/Login'),
		hidden: true,
	},
]

/**
 * routerUtil.js 取代
 * 走菜单，走权限控制 动态添加的路由
 * 登陆 有 token -- redirect: '/dashboard/analysis'
 * @type {[null,null]}
 */
export const asyncRouterMap = [
	{
		path: '/',
		name: 'dashboard',
		// component: TabLayout,
		meta: { title: '首页' },
		redirect: '/dashboard/analysis',
		children: [
			// dashboard
			/*
	    {
				path: '/dashboard',
				name: 'dashboard',
				redirect: '/dashboard/workplace',
				component: RouteView,
				meta: { title: '仪表盘', icon: 'dashboard', permission: ['dashboard'] },
				children: [
					{
						path: '/dashboard/analysis',
						name: 'Analysis',
						component: () => import('@/views/dashboard/Analysis'),
						meta: { title: '分析页', permission: ['dashboard'] },
					},
					{
						path: '/dashboard/workplace',
						name: 'Workplace',
						component: () => import('@/views/dashboard/Workplace'),
						meta: { title: '工作台', permission: ['dashboard'] },
					},
				],
			},
			 */
		],
	},
	{
		// path: '*',
		path: '/:pathMatch(.*)*',
		redirect: '/404',
		hidden: true,
	},
]
